import React,{Component} from 'react'
import {Link} from 'react-router-dom'
class Child1 extends Component{
	constructor(){
		super();
		this.state = {
			myName : "这里是child1页面"
		}
	}
	componentWillMount(){
		
	}
	showName(){
		this.props.showMyName(this.state.myName);
	}
	render(){
		return (
			<div>
				{this.state.myName}
				<div>
					<h1>child1页面</h1>
					<div></div>
				</div>
			</div>
		)
	}
}
export default Child1